package com.rustic.server.query;

import cn.xy.base.server.bean.IPage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 表[attractions]对应Query查询类
 *
 * @author auto
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AttractionsUserListQuery extends IPage {

    /**
     * 关联乡村id
     */
    @ApiModelProperty(value = "关联乡村id", dataType = "int")
    private int rusticId;

    /**
     * 景点名
     */
    @Length(min = 0, max = 100, message = "景点名长度为0-100个字符")
    @ApiModelProperty(value = "景点名", dataType = "String")
    private String name;

    /**
     * 地址
     */
    @Length(min = 0, max = 500, message = "地址长度为0-500个字符")
    @ApiModelProperty(value = "地址", dataType = "String")
    private String address;

    /**
     * 景点等级id
     */
    @ApiModelProperty(value = "景点等级id", dataType = "int")
    private int grade;

    /**
     * 景点类型id
     */
    @ApiModelProperty(value = "景点类型id", dataType = "int")
    private int type;

}
